import axios from 'axios'
var instance = axios.create({})

export const getAllProvinceLive = params => {
  return instance.post(`/showdataserver/api/getAllProvinceLive`).then(res => res.data)
}

export const getTotalPayChargeTOP10 = params => {
  return instance.post(`/showdataserver/api/getTotalChargeTop10`).then(res => res.data)
}

export const getAllSpaceChargeMsg = params => {
  return instance.post(`/showdataserver/api/getSpaceChargeMsg`).then(res => res.data)
}
export const getDetailInRec = params => {
  return instance.post(`/showdataserver/api/getDetailInRec`).then(res => res.data)
}
export const getDetailPayRec = params => {
  return instance.post(`/showdataserver/api/getDetailPayRec`).then(res => res.data)
}
export const getSpaceChargeMsg = params => {
  return instance.post(`/showdataserver/api/getSpaceChargeMsg`).then(res => res.data)
}
export const getOneParkSpaceCount = params => {
  return instance.post(`/showdataserver/api/getOneParkSpaceCount`).then(res => res.data)
}
export const getTotalDataHourly = params => {
  return instance.post(`/showdataserver/api/getTotalDataHourly`).then(res => res.data)
}
export const getTotalStop = params => {
  return instance.post(`/showdataserver/api/getTotalStop`).then(res => res.data)
}
export const getSpaceSaturation = params => {
  return instance.post(`/showdataserver/api/getSpaceSaturation`).then(res => res.data)
}
